package com.exam.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author 小聋包
 * @date 2024-04-21 15:51
 * @Version 1.0
 */
@Data
@Component
@ConfigurationProperties(prefix = "oss.config")
public class OSSConfig {
    public boolean enable=false;

    public String endpoint="oss-cn-beijing.aliyuncs.com";

    public String accesskeyid ="LTAI5t7vcoREzGxXmXnXAmxQ";

     public String accesskeysecret="scZ6TsZpHkjlAmk5uaMmxrpDnXUfrN";

     private String bucketname="buck-342";

    public String key = "images/upload/";

    public String host = "oss-cn-beijing.aliyuncs.com";
}
